<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <style type="text/css">
            form
            {
                position:absolute;
                top:270px;
                left:650px;
                width:400px;
                height:480px;
                margin-top: 0px;
            }
            #reg
            {
                color:blue;
            }
            body{
                background-image:url("./img/背景图.jpg");
            }
            p{
                font-size: 25px;
                color:red;
            }
        </style>
    </head>
    <body>
        <form name="login">
            
            <div>
            <p>
                用户名:<input type="text"/>
            </p>
            <p>
                密&emsp;码:<input type="password"/>              
            </p>
            <p>
                <input id=log type="submit" value="登录" onclick="a()"/>
            </p>
            <p>
                还没有账号？--><a href="register.html"><input type="button" value="立即注册"></a>
            </p>
            </div> 
        </form>
    </body>
    <script type="text/javascript">
        function a(){
            method:{
                alter("您成功登录");
            }
            
        }
    </script>
</html>